package com.mv.controller;

import com.mv.entity.Country;
import com.mv.service.CountryServiceImpl;
import org.elasticsearch.client.license.LicensesStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author Administrator
 */
@RequestMapping("/country")
@Controller
public class CountryController {


    @Autowired
    CountryServiceImpl countryService;


    @RequestMapping("/selectAllCountry")
    @ResponseBody
    public List<Country> selectAllCountry(){
        return countryService.selectAllCountry();
    }


}
